# Be sure to restart your server when you modify this file.

# Rails.application.config.session_store :cookie_store, key: '_express_session'
Rails.application.config.session_store :redis_session_store, {
  key: '_express_session',
  serializer: :json,
  redis: {
    db: ENV["REDIS_DB_NAME"],
    expire_after: SESSION_EXPIRE_TIME,
    key_prefix: 'express:session:',
    host: ENV["REDIS_HOST"],
    port: ENV["REDIS_PORT"],
    password: ENV["REDIS_PASSWORD"]
  },
  httponly: false
}